﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Crawler.Model.SystemDefault
{
    /// <summary>
    /// 采集地址信息
    /// </summary>
    [Table("system_collectorurl")]
    [SugarTable("system_collectorurl")]
    public class CollectorUrlModel:BaseModel
    {
        public int CollectorConfigID { get; set; }
        public int Depth { get; set; }
        public int ErrorTimes { get; set; }
        public int ReCollectTimes { get; set; }
        public string Url { get; set; }
        public DateTime AddTime { get; set; }
        public CollectStatus CollectStatus { get; set; }
    }

    public enum CollectStatus
    {
        Default = 0,
        /// <summary>
        /// 已经采集到内容
        /// </summary>
        Collected = 1,
        /// <summary>
        /// 重新采集
        /// </summary>
        ReCollect = 2
    }
}
